package com.cruising.backend.mapper;

import com.cruising.backend.entity.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yezi
 * @since 2025-04-21
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    //    根据账号去数据库进行查找
    @Select("select * from admin where username=#{username}")
    Admin findByUsername(String username);
}
